<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<head>
    <link rel="stylesheet" type="text/css" href="/css/style_member.css" />
    <title>会员注册-笔飞美术作品</title>
    <%@include file="../common/jspcommon.jsp"%>
	
	<%@include file="../common/js.jsp"%>
	<script type="text/javascript" src="js/jquery.validate.js"></script>
	<%@include file="../common/css.jsp"%>
</head>
<body>
<div id="box">
    <%@include file="../common/header.jsp"%>
    <div id="main_div">
        <div class="site_map"><a href="../index.html">首页</a> 》我的定制</div>
        
        <div id="member_div_2">
            <table cellpadding="0" cellspacing="0" class="member_table">
                <tr>
                    <td class="td_1" valign="top">
                        <div class="left_nav">
	                        <ul>
	                            <li><a href="/member.htm">控制面板</a></li>
	                            <li	><a href="/memberInfo.htm">个人资料</a></li>
	                            <li	><a href="/mOrders.htm">我的订单</a></li>
	                            <li class="cur"><a href="/mMade.htm">我的定制</a></li>
	                            <li ><a href="/mActivity.htm">我的活动</a></li>
	                            <li><a href="/mHas.htm">关注收藏欣赏</a></li>
	                            <li><a href="mComment.htm">评论管理</a></li>
	                            <li><a href="mPay.htm">支付保证金</a></li>
	                        </ul>
                        </div>
                    </td>
                    <td class="td_2" valign="top">
                        <div><a href="#"><img src="../images/btn_sydz.jpg" alt="" /></a></div>
                        <div class="mt20">
                            <table cellpadding="5" cellspacing="1" class="member_table2">
                                <tr class="td1">
                                    <td style="width:100px; font-weight:bold;">定制编号</td>
                                    <td style="width:100px; font-weight:bold;">艺术家</td>
                                    <td style="width:100px; font-weight:bold;">会员</td>
                                    <td style="width:100px; font-weight:bold;">标题</td>
                                    <td style="width:100px; font-weight:bold;">定制时间</td>
                                    <td style="font-weight:bold;">状态</td>
                                </tr>
                                
                              <c:forEach items="${pageModel.list}" var="myMade" varStatus="vs">
                                  <c:if test="${vs.count%2 ==1}">
                                <tr class="td2">
                                    <td><a href="#" onclick="showMadeTalk('${myMade.identifier}')">${myMade.identifier}</a></td>
                                    <td>${myMade.artist.name }</td>
                                    <td>${myMade.madeName}</td>
                                    <td>${myMade.title }</td>
                                    <td><fmt:formatDate value="${myMade.gmtCreated}" pattern="yyyy-MM-dd HH:mm:SS" /></td>
                                    <c:if test="${myMade.stage eq '01' }">
                                   		 <c:if test="${!myMade.firstPay}"><td>定制中</td></c:if>
                                    </c:if>
                                     <c:if test="${myMade.stage eq '02' }">
                                    		<c:if test="${!myMade.firstPay}"><td>内容已确定<br /><a href="#" onclick="alipayto('${myMade.firstId}')"><img src="../images/btn_zfdj.jpg" alt="" /></a></td></c:if>
                                    		<c:if test="${myMade.firstPay}"> <td>内容已确定<br /><img src="../images/btn_djyf.jpg" alt="" /></td></c:if>
                                  	 </c:if>
                                  	 <c:if test="${myMade.stage eq '03' }">
                                   			 <c:if test="${!myMade.secondPay}"><td>草图已确定<br /><a href="#" onclick="alipayto('${myMade.secondId}')"><img src="../images/btn_zfzjk.jpg" alt="" /></a></td></c:if>
                                   			 <c:if test="${myMade.secondPay}"><td>草图已确定<br /> 中间款已付 </td></c:if>
                                     </c:if>
                                     <c:if test="${myMade.stage eq '04' }">
                                   			 <c:if test="${!myMade.thirdPay}"><td>已验收<br /><a href="#" onclick="alipayto('${myMade.thirdId}')"><img src="../images/btn_zfwk.jpg" alt="" /></a></td></c:if>
                                   			 <c:if test="${myMade.thirdPay}"><td>已验收，已完成。<br /></td></c:if>
                                     </c:if>
                                </tr>
                                </c:if>
                              <c:if test="${vs.count%2 ==0}">
                                <tr class="td1">
                                    <td><a href="#" onclick="showMadeTalk('${myMade.identifier}')">${myMade.identifier}</a></td>
                                    <td>${myMade.artist.name }</td>
                                    <td>${myMade.madeName}</td>
                                    <td>${myMade.title }</td>
                                    <td><fmt:formatDate value="${myMade.gmtCreated}" pattern="yyyy-MM-dd HH:mm:SS" /></td>
                                     <c:if test="${myMade.stage eq '01' }">
                                   		 <c:if test="${!myMade.firstPay}"><td>定制中</td></c:if>
                                    </c:if>
                                     <c:if test="${myMade.stage eq '02' }">
                                    		<c:if test="${!myMade.firstPay}"><td>内容已确定<br /><a href="#" onclick="alipayto('${myMade.firstId}')"><img src="../images/btn_zfdj.jpg" alt="" /></a></td></c:if>
                                    		<c:if test="${myMade.firstPay}"> <td>内容已确定<br /><img src="../images/btn_djyf.jpg" alt="" /></td></c:if>
                                  	 </c:if>
                                  	 <c:if test="${myMade.stage eq '03' }">
                                   			 <c:if test="${!myMade.secondPay}"><td>草图已确定<br /><a href="#" onclick="alipayto('${myMade.secondId}')"><img src="../images/btn_zfzjk.jpg" alt="" /></a></td></c:if>
                                   			 <c:if test="${myMade.secondPay}"><td>草图已确定<br /> 中间款已付 </td></c:if>
                                     </c:if>
                                     <c:if test="${myMade.stage eq '04' }">
                                   			 <c:if test="${!myMade.thirdPay}"><td>已验收<br /><a href="#" onclick="alipayto('${myMade.thirdId}')"><img src="../images/btn_zfwk.jpg" alt="" /></a></td></c:if>
                                   			 <c:if test="${myMade.thirdPay}"><td>已验收，已完成。<br /></td></c:if>
                                     </c:if>
                                </tr>
                             </c:if>
                               </c:forEach>
                            </table>
                        </div>
                        <!-- <div class="page_div">
                            <a href="#"><img src="../images/btn_prev.jpg" alt=""></a><a href="#">1</a><a href="#">2</a><a href="#">3</a>...<a href="#">10</a><a href="#"><img src="../images/btn_next.jpg" alt=""></a>
                        </div> -->
                    </td>
                </tr>
            </table>
        </div>
       <%@include file="../common/footer.jsp" %>
    </div>
</div>
<script type="text/javascript">
function showMadeTalk(madeId){
	window.location.href="/talk.htm?id="+madeId;
}

function alipayto(oId){
	if(oId !=null){
		var url = "alipayto.htm?orderNum="+oId;
		window.open(url);
	}else{
		alert("支付 出错了！");
	}
}
</script>
</body>
</html>